Skip to content

better handling of overloaded extractors #1325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2016

Conversation

liufengyun
Copy link
Contributor

Fix #1318 , review @DarkDimius

This fix only works in limited cases. For example, if we remove the comments in the test tests/pos/i1318.scala, compilation still fails.

It seems that a more general and correct approach is to use a try and backtrack approach to find the first overloaded unapply that type checks. I'm not sure if it's good to follow that approach.

@DarkDimius
Copy link
Contributor

LGTM.

@DarkDimius DarkDimius merged commit 82a0bd3 into scala:master Jun 22, 2016
@allanrenucci allanrenucci deleted the overloaded-extractor branch December 14, 2017 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type checking error in patmat (related to overloaded unapply)
4 participants